package com.bjypc.youth.web.chart;

import org.jfree.chart.JFreeChart;

import com.bjypc.youth.service.chart.SexValueOrientBarChartService;
import com.opensymphony.xwork2.ActionSupport;

public class SexValueOrientBarChartAction extends ActionSupport {
	/**
     * serialVersionUID
     */
    private static final long serialVersionUID = 5752180822913527064L;

    //JChartResult->ActionInvocation.getStack().findValue("chart")
    private JFreeChart chart;
    private SexValueOrientBarChartService chartService;
    
    @Override
    public String execute() throws Exception {

        //JFreeChart
        chart = this.chartService.createChart();
        
        return SUCCESS;
    }

    public JFreeChart getChart() {
        return chart;
    }

    public void setChart(JFreeChart chart) {
        this.chart = chart;
    }

	public SexValueOrientBarChartService getChartService() {
		return chartService;
	}

	public void setChartService(SexValueOrientBarChartService chartService) {
		this.chartService = chartService;
	}


    
}
